//
//  LLBAutoFitSizeExtension.swift
//  LieLuoBo_B
//
//  Created by zhangyu on 2018/7/2.
//  Copyright © 2018年 Yun. All rights reserved.
//

import UIKit

let aw = UIScreen.main.bounds.width/375.0
let ah = UIScreen.main.bounds.height/667.0


extension CGFloat {
    public var llbWF: CGFloat {
        return aw * self
    }
    public var llbHF: CGFloat {
        return ah * self
    }
}

extension Float {
    public var llbWF: CGFloat {
        return aw * CGFloat(self)
    }
    
    public var llbHF: CGFloat {
        return ah * CGFloat(self)
    }
}

extension Double {
    public var llbWF: CGFloat {
        return aw * CGFloat(self)
    }
    
    public var llbHF: CGFloat {
        return ah * CGFloat(self)
    }
}

extension Int {
    public var llbWF: CGFloat {
        return aw * CGFloat(self)
    }
    
    public var llbHF: CGFloat {
        return ah * CGFloat(self)
    }
}
 
